﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/template.css")" type="text/css" rel="Stylesheet" />
    <link href="@Url.Content("~/Content/controls.css")" type="text/css" rel="stylesheet" />
    <link href="@Url.Content("~/Content/leftMenu.css")" type="text/css" rel="stylesheet" />
    <link href="@Url.Content("~/Content/wucJModal.css")" type="text/css" rel="stylesheet" />
    <link href="@Url.Content("~/Content/Tables/TableCSSCode.css")" rel="stylesheet" type="text/css" />
    <!--
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    -->

     <!--[if !IE 7]>
	    <style type="text/css">
	        /* Sticky Footer */
		    .mainContainer {display:table;height:100%}
	    </style>
    <![endif]-->
    <script src="@Url.Content("~/Scripts/jquery-1.6.2.js")" type="text/javascript"></script>    
    <script src="@Url.Content("~/Scripts/menuLeft.js")" type="text/javascript"></script>      
     <link href="@Url.Content("~/Scripts/jquery-ui-1.10.3.custom/css/overcast/jquery-ui-1.10.3.custom.css")" rel="stylesheet">
	<script src="@Url.Content("~/Scripts/jquery-ui-1.10.3.custom/js/jquery-1.9.1.js")"></script>
	<script src="@Url.Content("~/Scripts/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.ingrid-0.9.9-min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/SAIN.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr.custom.js")" type="text/javascript"></script>

    <script type="text/javascript">
        function DataTransactionList() {
            $.ajax({
                type: 'GET',
                url: '@Url.Action("List","DataTransactions")'
            }).done(
                function (data) {
                    $('.centerContent').html(data);
                });  //$('#centerContent').load('@Url.Action("List","DataTransactions")');
        }

        function CreateDataTransaction() {
            var vsName = $('#sName').val();
            var viConnectionId = $('#iConnectionId').val();
            var vsProcedureName = $('#sProcedureName').val();

            $.ajax({
                type: 'POST',
                dataType: 'json',
                url: '@Url.Action("Create","DataTransactions")',
                data: { sName: vsName, iConnectionId: viConnectionId, sProcedureName: vsProcedureName}
            }).done(function (data) { DataTransactionList(); alert(data); });
        }

    </script>

</head>

<body>
    <div class="mainContainer">
        <div class="headerContainer">
            <div class="logoTernium"></div>
            <div class="logoNova"></div>
            <div class="clearBoth"></div>
        </div>

        <div class="mainContent">
            <div class="headerContent">                
                <h2 class="icon_user floatLeft">                    
                    Bienvenido @Html.ActionLink("["+SAIN.MVC.Controllers.Membership.UserName+"]","Index","Perfil")<div id="Hora" />
                </h2>
            </div>
            <div class="leftContent">
                <div class="leftMenu">
                @RenderSection("leftMenu", false)
                </div>
            </div>
            <div id='centerContent' class="centerContent">              
                @RenderBody()               
            </div>
            <div class="footerContent clearBoth"></div>
         </div>
     </div>
     <div class="footerContainer">
        <center>
        <p>
            Sistema Administración Integral - [SAIN]
        </p>
        </center>        
    </div>
</body>
</html>
